/*
* Copyright (C) 2012-2014 qar
* License: http://www.gnu.org/licenses/gpl.html GPL version 2
*/

#include "crypto/auth/signernull.h"

SignerNull::SignerNull()
{}

SignerNull::~SignerNull()
{}

qint64 SignerNull::hashSize() const
{
    return 0;
}

QString SignerNull::getAlgorithmName() const
{
    return "None";
}

void SignerNull::signSegment(const QByteArray &segment, QByteArray &signedSegment)
{
    signedSegment = segment;
}

bool SignerNull::checkAndExtractSegment(const QByteArray &signedSegment, QByteArray &segment)
{
    segment = signedSegment;
    return true;
}

bool SignerNull::toStream(QDataStream &)
{
    return true;
}

bool SignerNull::fromStream(QDataStream &)
{
    return true;
}

